首页三点不好点击问题

chengzhenyu 8 年之前
父节点
当前提交
f75d31c0ed

+ 2 - 0
app/src/main/java/ai/pai/client/activity/MainActivity.java

@@ -110,6 +110,7 @@ public class MainActivity extends AppCompatActivity
110 110
         gatherBtn = (ImageButton)findViewById(R.id.floating_btn_gather);
111 111
         findViewById(R.id.floating_btn_add).setOnClickListener(this);
112 112
         findViewById(R.id.floating_btn_scan).setOnClickListener(this);
113
+        findViewById(R.id.iv_three_dot).setOnClickListener(this);
113 114
         gatherBtn.setOnClickListener(this);
114 115
         callGuideBtn.setOnClickListener(this);
115 116
     }
@@ -208,6 +209,7 @@ public class MainActivity extends AppCompatActivity
208 209
                 Intent intent = new Intent(MainActivity.this, QRCaptureActivity.class);
209 210
                 startActivityForResult(intent, JOIN_REQUEST_CODE);
210 211
                 break;
212
+            case R.id.iv_three_dot:
211 213
             case R.id.drawer_toggle:
212 214
                 if (drawer.isDrawerOpen(GravityCompat.START)) {
213 215
                     drawer.closeDrawer(GravityCompat.START);

+ 3 - 1
app/src/main/java/ai/pai/client/utils/HttpPostTask.java

@@ -4,11 +4,11 @@ import android.content.Context;
4 4
 import android.os.AsyncTask;
5 5
 
6 6
 import com.android.common.http.HttpUtils;
7
+import com.android.common.utils.LogHelper;
7 8
 
8 9
 import java.util.HashMap;
9 10
 
10 11
 import ai.pai.client.BuildConfig;
11
-import ai.pai.client.R;
12 12
 
13 13
 
14 14
 public  class HttpPostTask extends AsyncTask<String,Integer,Boolean> {
@@ -32,6 +32,8 @@ public  class HttpPostTask extends AsyncTask<String,Integer,Boolean> {
32 32
         rootUrl+="&version="+BuildConfig.VERSION_NAME;
33 33
         rootUrl+="&channel="+"guanwang";
34 34
         String response= HttpUtils.doHttpPost(rootUrl,httpParams);
35
+        LogHelper.d("czy","request url =="+ rootUrl + "\n");
36
+        LogHelper.d("czy","response == \n"+response);
35 37
         return parseResponse(context,response);
36 38
     }
37 39
 

+ 2 - 3
common/src/main/java/com/android/common/utils/LogHelper.java

@@ -40,7 +40,7 @@ public class LogHelper {
40 40
         if (msg == null)
41 41
             msg = "";
42 42
 
43
-//        dfile(tag, msg);
43
+        dfile(tag, msg);
44 44
         return enableDefaultLog ? Log.d(tag, msg, tr) : RETURN_NOLOG;
45 45
     }
46 46
 
@@ -49,7 +49,7 @@ public class LogHelper {
49 49
         if (msg == null)
50 50
             msg = "";
51 51
 
52
-//        dfile(tag, msg);
52
+        dfile(tag, msg);
53 53
         return enableDefaultLog ? Log.d(tag, msg) : RETURN_NOLOG;
54 54
     }
55 55
 
@@ -113,7 +113,6 @@ public class LogHelper {
113 113
     }
114 114
 
115 115
     public static void dfile(String tag, String msg) {
116
-        d(tag,msg);
117 116
         if (logToFile != null && enableFileLog) {
118 117
             logToFile.writeFileLog(Log.DEBUG, tag, msg);
119 118
         }